package com.dwxt.race.entity;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class RaceExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public RaceExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Integer value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Integer value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Integer value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Integer value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Integer value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Integer> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Integer> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Integer value1, Integer value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Integer value1, Integer value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andRaceNameIsNull() {
            addCriterion("race_name is null");
            return (Criteria) this;
        }

        public Criteria andRaceNameIsNotNull() {
            addCriterion("race_name is not null");
            return (Criteria) this;
        }

        public Criteria andRaceNameEqualTo(String value) {
            addCriterion("race_name =", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameNotEqualTo(String value) {
            addCriterion("race_name <>", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameGreaterThan(String value) {
            addCriterion("race_name >", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameGreaterThanOrEqualTo(String value) {
            addCriterion("race_name >=", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameLessThan(String value) {
            addCriterion("race_name <", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameLessThanOrEqualTo(String value) {
            addCriterion("race_name <=", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameLike(String value) {
            addCriterion("race_name like", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameNotLike(String value) {
            addCriterion("race_name not like", value, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameIn(List<String> values) {
            addCriterion("race_name in", values, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameNotIn(List<String> values) {
            addCriterion("race_name not in", values, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameBetween(String value1, String value2) {
            addCriterion("race_name between", value1, value2, "raceName");
            return (Criteria) this;
        }

        public Criteria andRaceNameNotBetween(String value1, String value2) {
            addCriterion("race_name not between", value1, value2, "raceName");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeIsNull() {
            addCriterion("registration_start_time is null");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeIsNotNull() {
            addCriterion("registration_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeEqualTo(Date value) {
            addCriterion("registration_start_time =", value, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeNotEqualTo(Date value) {
            addCriterion("registration_start_time <>", value, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeGreaterThan(Date value) {
            addCriterion("registration_start_time >", value, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("registration_start_time >=", value, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeLessThan(Date value) {
            addCriterion("registration_start_time <", value, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("registration_start_time <=", value, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeIn(List<Date> values) {
            addCriterion("registration_start_time in", values, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeNotIn(List<Date> values) {
            addCriterion("registration_start_time not in", values, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeBetween(Date value1, Date value2) {
            addCriterion("registration_start_time between", value1, value2, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("registration_start_time not between", value1, value2, "registrationStartTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeIsNull() {
            addCriterion("registration_end_time is null");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeIsNotNull() {
            addCriterion("registration_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeEqualTo(Date value) {
            addCriterion("registration_end_time =", value, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeNotEqualTo(Date value) {
            addCriterion("registration_end_time <>", value, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeGreaterThan(Date value) {
            addCriterion("registration_end_time >", value, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("registration_end_time >=", value, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeLessThan(Date value) {
            addCriterion("registration_end_time <", value, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("registration_end_time <=", value, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeIn(List<Date> values) {
            addCriterion("registration_end_time in", values, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeNotIn(List<Date> values) {
            addCriterion("registration_end_time not in", values, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeBetween(Date value1, Date value2) {
            addCriterion("registration_end_time between", value1, value2, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRegistrationEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("registration_end_time not between", value1, value2, "registrationEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeIsNull() {
            addCriterion("race_start_time is null");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeIsNotNull() {
            addCriterion("race_start_time is not null");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeEqualTo(Date value) {
            addCriterion("race_start_time =", value, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeNotEqualTo(Date value) {
            addCriterion("race_start_time <>", value, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeGreaterThan(Date value) {
            addCriterion("race_start_time >", value, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("race_start_time >=", value, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeLessThan(Date value) {
            addCriterion("race_start_time <", value, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeLessThanOrEqualTo(Date value) {
            addCriterion("race_start_time <=", value, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeIn(List<Date> values) {
            addCriterion("race_start_time in", values, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeNotIn(List<Date> values) {
            addCriterion("race_start_time not in", values, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeBetween(Date value1, Date value2) {
            addCriterion("race_start_time between", value1, value2, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceStartTimeNotBetween(Date value1, Date value2) {
            addCriterion("race_start_time not between", value1, value2, "raceStartTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeIsNull() {
            addCriterion("race_end_time is null");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeIsNotNull() {
            addCriterion("race_end_time is not null");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeEqualTo(Date value) {
            addCriterion("race_end_time =", value, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeNotEqualTo(Date value) {
            addCriterion("race_end_time <>", value, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeGreaterThan(Date value) {
            addCriterion("race_end_time >", value, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("race_end_time >=", value, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeLessThan(Date value) {
            addCriterion("race_end_time <", value, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeLessThanOrEqualTo(Date value) {
            addCriterion("race_end_time <=", value, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeIn(List<Date> values) {
            addCriterion("race_end_time in", values, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeNotIn(List<Date> values) {
            addCriterion("race_end_time not in", values, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeBetween(Date value1, Date value2) {
            addCriterion("race_end_time between", value1, value2, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andRaceEndTimeNotBetween(Date value1, Date value2) {
            addCriterion("race_end_time not between", value1, value2, "raceEndTime");
            return (Criteria) this;
        }

        public Criteria andConditionsIsNull() {
            addCriterion("conditions is null");
            return (Criteria) this;
        }

        public Criteria andConditionsIsNotNull() {
            addCriterion("conditions is not null");
            return (Criteria) this;
        }

        public Criteria andConditionsEqualTo(String value) {
            addCriterion("conditions =", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsNotEqualTo(String value) {
            addCriterion("conditions <>", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsGreaterThan(String value) {
            addCriterion("conditions >", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsGreaterThanOrEqualTo(String value) {
            addCriterion("conditions >=", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsLessThan(String value) {
            addCriterion("conditions <", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsLessThanOrEqualTo(String value) {
            addCriterion("conditions <=", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsLike(String value) {
            addCriterion("conditions like", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsNotLike(String value) {
            addCriterion("conditions not like", value, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsIn(List<String> values) {
            addCriterion("conditions in", values, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsNotIn(List<String> values) {
            addCriterion("conditions not in", values, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsBetween(String value1, String value2) {
            addCriterion("conditions between", value1, value2, "conditions");
            return (Criteria) this;
        }

        public Criteria andConditionsNotBetween(String value1, String value2) {
            addCriterion("conditions not between", value1, value2, "conditions");
            return (Criteria) this;
        }

        public Criteria andCostIsNull() {
            addCriterion("cost is null");
            return (Criteria) this;
        }

        public Criteria andCostIsNotNull() {
            addCriterion("cost is not null");
            return (Criteria) this;
        }

        public Criteria andCostEqualTo(Double value) {
            addCriterion("cost =", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotEqualTo(Double value) {
            addCriterion("cost <>", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThan(Double value) {
            addCriterion("cost >", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostGreaterThanOrEqualTo(Double value) {
            addCriterion("cost >=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThan(Double value) {
            addCriterion("cost <", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostLessThanOrEqualTo(Double value) {
            addCriterion("cost <=", value, "cost");
            return (Criteria) this;
        }

        public Criteria andCostIn(List<Double> values) {
            addCriterion("cost in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotIn(List<Double> values) {
            addCriterion("cost not in", values, "cost");
            return (Criteria) this;
        }

        public Criteria andCostBetween(Double value1, Double value2) {
            addCriterion("cost between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andCostNotBetween(Double value1, Double value2) {
            addCriterion("cost not between", value1, value2, "cost");
            return (Criteria) this;
        }

        public Criteria andAddressIsNull() {
            addCriterion("address is null");
            return (Criteria) this;
        }

        public Criteria andAddressIsNotNull() {
            addCriterion("address is not null");
            return (Criteria) this;
        }

        public Criteria andAddressEqualTo(String value) {
            addCriterion("address =", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotEqualTo(String value) {
            addCriterion("address <>", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThan(String value) {
            addCriterion("address >", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressGreaterThanOrEqualTo(String value) {
            addCriterion("address >=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThan(String value) {
            addCriterion("address <", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLessThanOrEqualTo(String value) {
            addCriterion("address <=", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressLike(String value) {
            addCriterion("address like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotLike(String value) {
            addCriterion("address not like", value, "address");
            return (Criteria) this;
        }

        public Criteria andAddressIn(List<String> values) {
            addCriterion("address in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotIn(List<String> values) {
            addCriterion("address not in", values, "address");
            return (Criteria) this;
        }

        public Criteria andAddressBetween(String value1, String value2) {
            addCriterion("address between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andAddressNotBetween(String value1, String value2) {
            addCriterion("address not between", value1, value2, "address");
            return (Criteria) this;
        }

        public Criteria andRuleIsNull() {
            addCriterion("rule is null");
            return (Criteria) this;
        }

        public Criteria andRuleIsNotNull() {
            addCriterion("rule is not null");
            return (Criteria) this;
        }

        public Criteria andRuleEqualTo(String value) {
            addCriterion("rule =", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleNotEqualTo(String value) {
            addCriterion("rule <>", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleGreaterThan(String value) {
            addCriterion("rule >", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleGreaterThanOrEqualTo(String value) {
            addCriterion("rule >=", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleLessThan(String value) {
            addCriterion("rule <", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleLessThanOrEqualTo(String value) {
            addCriterion("rule <=", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleLike(String value) {
            addCriterion("rule like", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleNotLike(String value) {
            addCriterion("rule not like", value, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleIn(List<String> values) {
            addCriterion("rule in", values, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleNotIn(List<String> values) {
            addCriterion("rule not in", values, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleBetween(String value1, String value2) {
            addCriterion("rule between", value1, value2, "rule");
            return (Criteria) this;
        }

        public Criteria andRuleNotBetween(String value1, String value2) {
            addCriterion("rule not between", value1, value2, "rule");
            return (Criteria) this;
        }

        public Criteria andOrganizerIsNull() {
            addCriterion("organizer is null");
            return (Criteria) this;
        }

        public Criteria andOrganizerIsNotNull() {
            addCriterion("organizer is not null");
            return (Criteria) this;
        }

        public Criteria andOrganizerEqualTo(String value) {
            addCriterion("organizer =", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerNotEqualTo(String value) {
            addCriterion("organizer <>", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerGreaterThan(String value) {
            addCriterion("organizer >", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerGreaterThanOrEqualTo(String value) {
            addCriterion("organizer >=", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerLessThan(String value) {
            addCriterion("organizer <", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerLessThanOrEqualTo(String value) {
            addCriterion("organizer <=", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerLike(String value) {
            addCriterion("organizer like", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerNotLike(String value) {
            addCriterion("organizer not like", value, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerIn(List<String> values) {
            addCriterion("organizer in", values, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerNotIn(List<String> values) {
            addCriterion("organizer not in", values, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerBetween(String value1, String value2) {
            addCriterion("organizer between", value1, value2, "organizer");
            return (Criteria) this;
        }

        public Criteria andOrganizerNotBetween(String value1, String value2) {
            addCriterion("organizer not between", value1, value2, "organizer");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNull() {
            addCriterion("phone is null");
            return (Criteria) this;
        }

        public Criteria andPhoneIsNotNull() {
            addCriterion("phone is not null");
            return (Criteria) this;
        }

        public Criteria andPhoneEqualTo(String value) {
            addCriterion("phone =", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotEqualTo(String value) {
            addCriterion("phone <>", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThan(String value) {
            addCriterion("phone >", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneGreaterThanOrEqualTo(String value) {
            addCriterion("phone >=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThan(String value) {
            addCriterion("phone <", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLessThanOrEqualTo(String value) {
            addCriterion("phone <=", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneLike(String value) {
            addCriterion("phone like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotLike(String value) {
            addCriterion("phone not like", value, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneIn(List<String> values) {
            addCriterion("phone in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotIn(List<String> values) {
            addCriterion("phone not in", values, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneBetween(String value1, String value2) {
            addCriterion("phone between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andPhoneNotBetween(String value1, String value2) {
            addCriterion("phone not between", value1, value2, "phone");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNull() {
            addCriterion("create_time is null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIsNotNull() {
            addCriterion("create_time is not null");
            return (Criteria) this;
        }

        public Criteria andCreateTimeEqualTo(Date value) {
            addCriterion("create_time =", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotEqualTo(Date value) {
            addCriterion("create_time <>", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThan(Date value) {
            addCriterion("create_time >", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("create_time >=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThan(Date value) {
            addCriterion("create_time <", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeLessThanOrEqualTo(Date value) {
            addCriterion("create_time <=", value, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeIn(List<Date> values) {
            addCriterion("create_time in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotIn(List<Date> values) {
            addCriterion("create_time not in", values, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeBetween(Date value1, Date value2) {
            addCriterion("create_time between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andCreateTimeNotBetween(Date value1, Date value2) {
            addCriterion("create_time not between", value1, value2, "createTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andRaceStatusIsNull() {
            addCriterion("race_status is null");
            return (Criteria) this;
        }

        public Criteria andRaceStatusIsNotNull() {
            addCriterion("race_status is not null");
            return (Criteria) this;
        }

        public Criteria andRaceStatusEqualTo(Integer value) {
            addCriterion("race_status =", value, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusNotEqualTo(Integer value) {
            addCriterion("race_status <>", value, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusGreaterThan(Integer value) {
            addCriterion("race_status >", value, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("race_status >=", value, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusLessThan(Integer value) {
            addCriterion("race_status <", value, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusLessThanOrEqualTo(Integer value) {
            addCriterion("race_status <=", value, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusIn(List<Integer> values) {
            addCriterion("race_status in", values, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusNotIn(List<Integer> values) {
            addCriterion("race_status not in", values, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusBetween(Integer value1, Integer value2) {
            addCriterion("race_status between", value1, value2, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andRaceStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("race_status not between", value1, value2, "raceStatus");
            return (Criteria) this;
        }

        public Criteria andIntegralIsNull() {
            addCriterion("integral is null");
            return (Criteria) this;
        }

        public Criteria andIntegralIsNotNull() {
            addCriterion("integral is not null");
            return (Criteria) this;
        }

        public Criteria andIntegralEqualTo(Integer value) {
            addCriterion("integral =", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotEqualTo(Integer value) {
            addCriterion("integral <>", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralGreaterThan(Integer value) {
            addCriterion("integral >", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralGreaterThanOrEqualTo(Integer value) {
            addCriterion("integral >=", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralLessThan(Integer value) {
            addCriterion("integral <", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralLessThanOrEqualTo(Integer value) {
            addCriterion("integral <=", value, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralIn(List<Integer> values) {
            addCriterion("integral in", values, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotIn(List<Integer> values) {
            addCriterion("integral not in", values, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralBetween(Integer value1, Integer value2) {
            addCriterion("integral between", value1, value2, "integral");
            return (Criteria) this;
        }

        public Criteria andIntegralNotBetween(Integer value1, Integer value2) {
            addCriterion("integral not between", value1, value2, "integral");
            return (Criteria) this;
        }

        public Criteria andMaxPersonIsNull() {
            addCriterion("max_person is null");
            return (Criteria) this;
        }

        public Criteria andMaxPersonIsNotNull() {
            addCriterion("max_person is not null");
            return (Criteria) this;
        }

        public Criteria andMaxPersonEqualTo(Integer value) {
            addCriterion("max_person =", value, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonNotEqualTo(Integer value) {
            addCriterion("max_person <>", value, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonGreaterThan(Integer value) {
            addCriterion("max_person >", value, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonGreaterThanOrEqualTo(Integer value) {
            addCriterion("max_person >=", value, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonLessThan(Integer value) {
            addCriterion("max_person <", value, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonLessThanOrEqualTo(Integer value) {
            addCriterion("max_person <=", value, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonIn(List<Integer> values) {
            addCriterion("max_person in", values, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonNotIn(List<Integer> values) {
            addCriterion("max_person not in", values, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonBetween(Integer value1, Integer value2) {
            addCriterion("max_person between", value1, value2, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andMaxPersonNotBetween(Integer value1, Integer value2) {
            addCriterion("max_person not between", value1, value2, "maxPerson");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberIsNull() {
            addCriterion("registered_number is null");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberIsNotNull() {
            addCriterion("registered_number is not null");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberEqualTo(Integer value) {
            addCriterion("registered_number =", value, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberNotEqualTo(Integer value) {
            addCriterion("registered_number <>", value, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberGreaterThan(Integer value) {
            addCriterion("registered_number >", value, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberGreaterThanOrEqualTo(Integer value) {
            addCriterion("registered_number >=", value, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberLessThan(Integer value) {
            addCriterion("registered_number <", value, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberLessThanOrEqualTo(Integer value) {
            addCriterion("registered_number <=", value, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberIn(List<Integer> values) {
            addCriterion("registered_number in", values, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberNotIn(List<Integer> values) {
            addCriterion("registered_number not in", values, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberBetween(Integer value1, Integer value2) {
            addCriterion("registered_number between", value1, value2, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andRegisteredNumberNotBetween(Integer value1, Integer value2) {
            addCriterion("registered_number not between", value1, value2, "registeredNumber");
            return (Criteria) this;
        }

        public Criteria andVersionIsNull() {
            addCriterion("version is null");
            return (Criteria) this;
        }

        public Criteria andVersionIsNotNull() {
            addCriterion("version is not null");
            return (Criteria) this;
        }

        public Criteria andVersionEqualTo(Integer value) {
            addCriterion("version =", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotEqualTo(Integer value) {
            addCriterion("version <>", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThan(Integer value) {
            addCriterion("version >", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionGreaterThanOrEqualTo(Integer value) {
            addCriterion("version >=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThan(Integer value) {
            addCriterion("version <", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionLessThanOrEqualTo(Integer value) {
            addCriterion("version <=", value, "version");
            return (Criteria) this;
        }

        public Criteria andVersionIn(List<Integer> values) {
            addCriterion("version in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotIn(List<Integer> values) {
            addCriterion("version not in", values, "version");
            return (Criteria) this;
        }

        public Criteria andVersionBetween(Integer value1, Integer value2) {
            addCriterion("version between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andVersionNotBetween(Integer value1, Integer value2) {
            addCriterion("version not between", value1, value2, "version");
            return (Criteria) this;
        }

        public Criteria andImgurlIsNull() {
            addCriterion("imgurl is null");
            return (Criteria) this;
        }

        public Criteria andImgurlIsNotNull() {
            addCriterion("imgurl is not null");
            return (Criteria) this;
        }

        public Criteria andImgurlEqualTo(String value) {
            addCriterion("imgurl =", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlNotEqualTo(String value) {
            addCriterion("imgurl <>", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlGreaterThan(String value) {
            addCriterion("imgurl >", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlGreaterThanOrEqualTo(String value) {
            addCriterion("imgurl >=", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlLessThan(String value) {
            addCriterion("imgurl <", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlLessThanOrEqualTo(String value) {
            addCriterion("imgurl <=", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlLike(String value) {
            addCriterion("imgurl like", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlNotLike(String value) {
            addCriterion("imgurl not like", value, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlIn(List<String> values) {
            addCriterion("imgurl in", values, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlNotIn(List<String> values) {
            addCriterion("imgurl not in", values, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlBetween(String value1, String value2) {
            addCriterion("imgurl between", value1, value2, "imgurl");
            return (Criteria) this;
        }

        public Criteria andImgurlNotBetween(String value1, String value2) {
            addCriterion("imgurl not between", value1, value2, "imgurl");
            return (Criteria) this;
        }

        public Criteria andCommitmentIsNull() {
            addCriterion("commitment is null");
            return (Criteria) this;
        }

        public Criteria andCommitmentIsNotNull() {
            addCriterion("commitment is not null");
            return (Criteria) this;
        }

        public Criteria andCommitmentEqualTo(String value) {
            addCriterion("commitment =", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentNotEqualTo(String value) {
            addCriterion("commitment <>", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentGreaterThan(String value) {
            addCriterion("commitment >", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentGreaterThanOrEqualTo(String value) {
            addCriterion("commitment >=", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentLessThan(String value) {
            addCriterion("commitment <", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentLessThanOrEqualTo(String value) {
            addCriterion("commitment <=", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentLike(String value) {
            addCriterion("commitment like", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentNotLike(String value) {
            addCriterion("commitment not like", value, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentIn(List<String> values) {
            addCriterion("commitment in", values, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentNotIn(List<String> values) {
            addCriterion("commitment not in", values, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentBetween(String value1, String value2) {
            addCriterion("commitment between", value1, value2, "commitment");
            return (Criteria) this;
        }

        public Criteria andCommitmentNotBetween(String value1, String value2) {
            addCriterion("commitment not between", value1, value2, "commitment");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}